package misp_backend.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
//@Component (或则Ossconfiguration类)
@ConfigurationProperties(prefix = "oss")
public class OssProperties {
    private  Minio minio;
    private Aliyun aliyun;

    @Data
    public static class Minio{
        private String endpoint;
        private String accessKey;
        private String secretKey;
    }
    @Data
    public static class Aliyun {
        private boolean active;
        private String endpoint;
        private String accessKeyId;
        private String accessKeySecret;
    }
}
